package com.test.web;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

@RestController
@Tag(name = "test", description = "测试")
public class HelloWorld {

    @GetMapping("GET")
    @Operation(description = "111", tags = "zzz")
    public String get(){
        return "hello world";
    }

    public static void main(String[] args) throws IOException, URISyntaxException {
        InputStream resource = HelloWorld.class.getClassLoader().getResourceAsStream("application.yml");
        System.out.println(resource);

    }
}
